package org.dromara.school.domain.bo;

import org.dromara.school.domain.Classes;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 班级管理业务对象 school_classes
 *
 * @author Gjb
 * @date 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Classes.class, reverseConvertGenerate = false)
public class ClassesBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 班级年份
     */
    private Integer classYear;

    /**
     * 班级号
     */
    private Integer classNum;

    /**
     * 班主任id
     */
    private Long teacherId;

    /**
     * 班级别名
     */
    private String alias;

    /**
     * 所属校区
     */
    @NotNull(message = "所属校区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long schoolCampusId;

    /**
     * 备注
     */
    private String remark;


    private Object classdata;

    private List<Long> classTeachers;


    private String className;
    private String teacherName;
    private String campusName;



}
